<template>
  <div>
    <table>
      <tr v-for="i in contentlist">
        <th>用户:</th>
        <td>{{ get_username(i.uid) }}</td>
        <th>评论内容:</th>
        <td>{{ i.content }}</td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props:["contentlist","myuser"],
  methods: {
    get_username: function(uid) {
      return this.myuser[uid];
    }
  },
  mounted() {},
};
</script>

<style>
</style>